cmake_minimum_required(VERSION 3.0)
project (service)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake OPTIONAL RESULT_VARIABLE HAS_CONAN)
if (NOT HAS_CONAN)
  message(FATAL_ERROR "missing conanbuildinfo.cmake did you forget to run conan install ?")
endif()
conan_basic_setup()

set(LIVEUPDATE_MB 32 CACHE STRING "")
option(MINIMAL "" ON)
option(SERIAL_OUTPUT "Output information" OFF)

include(os)
# Source files to be linked with OS library parts to form bootable image
set(SOURCES
  service.cpp test_boot.cpp
  )
os_add_executable(kernel_LiveUpdate "LiveUpdate integration test" ${SOURCES})

os_add_drivers(kernel_LiveUpdate
  vmxnet3
  boot_logger
)

if (SERIAL_OUTPUT)
  os_add_stdout(kernel_LiveUpdate default_stdout)
endif()

configure_file(test.py ${CMAKE_CURRENT_BINARY_DIR})
